package com.telenav.comm;

public class Host
{	
    public final static String HTTP = "http";

    public final static String SOCKET = "socket";
    
    public String protocol;
    
    public String host;
    
    public int port;
    
    String getUrl()
    {
        String url = this.protocol + "://" + host;
        if(this.port > 0)
        {
            url += ":" + this.port;
        }
        
        return url;
    }
}
